package com.noriental.okcalls.wechat.config;

import com.noriental.okcalls.wechat.cache.DefaultAccessTokenCache;
import com.noriental.okcalls.wechat.cache.IAccessTokenCache;
import lombok.Data;

/***
 * *   ____  ___________  ___________           ________   ____  __.  _____ _____.___.
 * *   \   \/  /\______ \ \_   _____/           \_____  \ |    |/ _| /  _  \\__  |   |
 * *    \     /  |    |  \ |    __)     ______   /   |   \|      <  /  /_\  \/   |   |
 * *    /     \  |    `   \|     \     /_____/  /    |    \    |  \/    |    \____   |
 * *   /___/\  \/_______  /\___  /              \_______  /____|__ \____|__  / ______|
 * *    	 \_/        \/     \/                       \/        \/       \/\/
 * *
 * *   功能描述：
 * *
 * *   @DATE    2020-10-09
 * *   @AUTHOR  qiyubin
 ***/
@Data
public class WxApiConfigInstance {

    //测试号
    // 见http://mp.weixin.qq.com/debug/cgi-bin/sandboxinfo?action=showinfo&t=sandbox/index
    private static String AppID = "wx5f0e1f1c8446efaf";
    private static String AppSecret = "ef0488561ee140d7c8b507da7b30a84b";

    public static Boolean devMode = false;

//    主号

    //需要多账户支持
    public static ApiConfig apiConfig;

    public static IAccessTokenCache accessTokenCache = new DefaultAccessTokenCache();

    static {
        ApiConfig ac = new ApiConfig();
        ac.setAppId(AppID);
        ac.setAppSecret(AppSecret);
        apiConfig = ac;
    }




}
